﻿@model Dexter.Web.Mvc.ViewModel.Backoffice.ViewsData.CategoryController.CategoryDeleteViewData
@{
	ViewBag.Title = "ConfirmDelete";
	Layout = "~/Areas/Admin/Views/Shared/_BackOffice.cshtml";
}

<div class="block-content">
	<div class="task with-legend">
		<div class="legend"><img src="@Url.Content( "~/admin/Resources/images/Icons/Fugue/status.png" )" width="16" height="16">Delete Post</div>
					
		<div class="task-description">
			<ul class="floating-tags float-left">
				<li class="tag-time">@Model.Category.CreationDate.ToShortDateString()</li>
			</ul>
						
			<p><strong>Title :</strong>@Model.Category.Name</p>
			<p><strong>Abstract :</strong>@Model.Category.Description</p>
			<p><strong>Categories :</strong>
				@for (int i = 0; i < Model.Category.Categories.Count; i++) {
					@Model.Category.Categories[i].Name
						if (i < Model.Category.Categories.Count-1 ) {
							Response.Write ( ", " );
						}
				}
			</p>
			<p><strong>Url: </strong><a href="@U.Category.Feed(Model.Category)"> Click Here</a></p>
			<p><strong>Content Number :</strong> @Model.Category.ContentNumber</p>
		</div>
					
		<ul class="task-dialog">
			<li>
				<form method="post" action="../../Delete">
					@Html.AntiForgeryToken()
					@Html.Hidden("id", Model.Category.Id )
					@Html.DropDownList("newCategoryId", new SelectList ( Model.Categories, "Id", "Name" ),"-- Move Post To --")
					<button type="button" onclick="location.href='@U.Category.Edit( Model.Category )'">Edit</button>
					<button type="submit">Confirm Delete</button>
				</form>
			</li>
		</ul>
	</div>
</div>